<script type="text/javascript">
var js_debug = false;
var min_fetch_width = {echo $maxfetchwidth?$maxfetchwidth:200};
var min_fetch_height = {echo $maxfetchheight?$maxfetchheight:200};

var VERHASH = '{echo random(3)}', charset = 'utf-8',  cookiepre = 'ptx_', cookiedomain = '', cookiepath = '/', crop_image;
var JSMENU = [];
JSMENU['active'] = [];
JSMENU['timer'] = []; 
JSMENU['drag'] = [];
JSMENU['layer'] = 0;
JSMENU['zIndex'] = {'win':200,'menu':3000,'dialog':400,'prompt':500};
JSMENU['float'] = ''; 
var BROWSER = {};
var USERAGENT = navigator.userAgent.toLowerCase();
browserVersion({'ie':'msie','firefox':'','chrome':'','opera':'','safari':'','mozilla':'','webkit':'','maxthon':'','qq':'qqbrowser'});
if(BROWSER.safari) {
	BROWSER.firefox = true;
}
BROWSER.opera = BROWSER.opera ? opera.version() : 0;
function browserVersion(types) {
	var other = 1;
	for(i in types) { 
		var v = types[i] ? types[i] : i;
		if(USERAGENT.indexOf(v) != -1) {
			var re = new RegExp(v + '(\\/|\\s)([\\d\\.]+)', 'ig');
			var matches = re.exec(USERAGENT);
			var ver = matches != null ? matches[2] : 0;
			other = ver !== 0 && v != 'mozilla' ? 0 : other;
		}else {
			var ver = 0; 
		}
		eval('BROWSER.' + i + '= ver');
	}
	BROWSER.other = other;
}  

var base_url = '{baseurl}';
var base_url_r = '{baseurlr}';
var url_fetchtpl = '{url misc/ajaxtpl}';
var url_userprofile = '{url user/profile}';
var tip_queue_too_many = "{lang tip_queue_too_many}";
var tip_uploading = "{lang tip_uploading}";
var tip_creating_thumb = "{lang tip_creating_thumb}";
var tip_error = "{lang tip_error}";
var tip_upload_completed = "{lang tip_upload_completed}";
var tip_cancelled = '{lang tip_cancelled}';
var tip_stopped="{lang tip_stopped}";
var tip_file_too_big="{lang tip_file_too_big}";
var tip_file_not_valid="{lang tip_file_not_valid}";
var tip_file_zero="{lang tip_file_zero}";

var tip_sitename = "{$settings['site_name']}";
var tip_publish_tagmax = "{lang tip_publish_tagmax}";
var tip_required = "{lang tip_required}";
var tip_not_required = "{lang tip_not_required}"; 
var tip_loading = "{lang tip_loading}";
var tip_load_complete = "{lang tip_load_complete}";
var tip_no_img_cover = "{lang tip_no_img_cover}";
var tip_album_cannot_be_null = "{lang tip_album_cannot_be_null}";
var tip_error = "{lang tip_error}";
var tip_server_error = "{lang tip_server_error}";
var tip_addlike = "{lang tip_addlike}";
var tip_likealready = "{lang tip_likealready}";
var tip_likeself = "{lang tip_likeself}";
var tip_removedlike = "{lang tip_removedlike}";
var tip_cannotbenull="{lang tip_cannotbenull}";
var tip_select="{lang tip_plsselect}";
var tip_select_file="{lang select_file}";
var tip_success="{lang tip_success}";
var tip_no_selection="{lang tip_no_selection}";
var tip_uploading="{lang tip_uploading}";
var tip_done="{lang done}";
var tip_removealbum_confirm = "{lang tip_removealbum_confirm}";
var tip_confirmdelete = "{lang tip_confirmdelete}";
var tip_confirm = "{lang tip_confirm}";
var tip_length_rang = "{lang length_rang}";
var tip_not_all_digit = "{lang not_all_digit}";

var tip_remote_fetch_nomatch = '{lang tip_remote_fetch_nomatch}';
</script>


{loadless boot}
{loadjs jquery-1.7.1.min}
{loadjs bootstrap.min}
{loadjs onightjar.functions}    
{loadjs ajaxupload}
{loadjs jquery.actionController}
{loadjs jquery.form}
{loadjs jquery.validate.min}
{loadjs jquery.zrssfeed.min}
{loadjs mustache}
{loadjs onightjar.formactions}
{loadjs onightjar.bbcode}
{loadjs onightjar.popover} 
{loadjs onightjar.dialog}
{loadjs onightjar.editor}  
{loadjs puzzing}